package Library.Events;

import java.awt.event.*;

/**
 *
 * @param <T>
 */
public class ValueEvent<T> extends ActionEvent
{
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param value
     */
    public ValueEvent(Object source, int id, String command, T value)
    {
	super(source, id, command);
	m_Value = value;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param modifiers
     * @param value
     */
    public ValueEvent(Object source, int id, String command, int modifiers, T value)
    {
	super(source, id, command, modifiers);
	m_Value = value;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param when
     * @param modifiers
     * @param value
     */
    public ValueEvent(Object source, int id, String command, long when, int modifiers, T value)
    {
	super(source, id, command, when, modifiers);
	m_Value = value;
    }
    
    private T m_Value;
    /**
     *
     * @return
     */
    public T getValue()
    {
	return m_Value;
    }
}
